package ws.jdbc.concurrent.driver.sqlserver

/**
 *
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
class ScrollableUpdatableTest extends ForwardOnlyUpdatableTest {

   /**
   * Test of insertRow() method.
   */
  void testInsertRow2() {
    println "testInsertRow2()"

    def curRow = rs.getRow()

    rs.moveToInsertRow()

    rs.updateInt(1, 33)
    rs.updateString(2, "33")

    rs.insertRow()

    rs.moveToCurrentRow()

    assertEquals curRow, rs.getRow()

    rs.last()

    assertLineValuesMatch rs, DataTest.table.size() + 1, 33, "33"
  }

  
}